import logo from './logo.svg';
import React from "react";
import './App.css';
import Login from "./pages/Login";
import Home from "./pages/Home";
import {
    BrowserRouter as Router,
    Route,
    Redirect
} from "react-router-dom";

function App() {
  return (
    <div className="App">
      <Router>
        <Route path="/" exact render={()=><Redirect to="/login"/>}/>
        <Route path="/login" component={Login}/>
        <Route path="/index" component={Home}/>
      </Router>
    </div>
  );
}

export default App;
